import master from './routes/master'
import student from './routes/student'
import teacher from './routes/teacher'

export default [
  {
    path: '/',
    routes: [
      {
        path: '/',
        redirect: '/Login',
      },
      {
        path: '/Login',
        name: '登录',
        component: './Login',
      },
      {
        path: '/Register',
        name: '注册',
        component: './Register',
      },
      {
        path: '/Master',
        name: '管理员',
        routes: master,
      },
      {
        path: '/Student',
        name: '学生',
        routes: student,
      },
      {
        path: '/Teacher',
        name: '教师',
        routes: teacher,
      }
    ]
  }
];
